package com.grandtech.insurance.feign;


import com.grandtech.insurance.domain.AreaParam;
import com.grandtech.insurance.domain.DkParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;

/**
 * @Author niuyuan
 * @Description agribigdata-server-base远程接口
 * @Date 2021/8/10 11:08
 * @Version 1.0
 */
@FeignClient(name = "${agribigdata.name}", url = "${agribigdata.url}",configuration = FeignConfiguration.class)
public interface AgribigdataClient {

    /**
     * @return
     * @Author niuyuan
     * @Description //长势作物列表
     * @Date 11:06 2021/8/10
     * @Param
     **/
    @GetMapping("/cm/cm/kepler/commonAction.dox")
    String getCropList( @RequestParam("action") String action,
                         @RequestParam("orgUniqueCd") String orgUniqueCd,
                         @RequestParam("bizYear") Integer bizYear);

    /**
     * @return
     * @Author niuyuan
     * @Description //长势下钻统计
     * @Date 14:57 2021/8/10
     * @Param
     **/
    @PostMapping("/ba/ba/common/BaBlockHBAction.dox?action=getBlockListReportToCQ")
    String updateDk(@RequestBody List<DkParam> paramList);


}
